Enable RoCC instructions after context switches#3
Open
abejgonzalez wants to merge 1 commit intofiresim-v57from
Open
Enable RoCC instructions after context switches#3abejgonzalez wants to merge 1 commit intofiresim-v57from
abejgonzalez wants to merge 1 commit intofiresim-v57from
Conversation
Author
|
Unfortunately, I can't recreate this in Spike right now. I'll keep this PR open in the short-term as a reminder that this might happen (and still needs investigating). |
|
Hi, Thank you very much to identify this hidden bug. However, I think your update does not fix the issue, as my test still fails in the ROCC instructions with P-Thread. I did many tests, and pretty sure that there are some ROCC instructions are missed (at least missed the XS bits). I am using the BOOM version: ad64c5419151e5e886daee7084d8399713b46b4b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When using pthreads with cores having RoCC instructions, context switches clear the XS bit causing illegal instruction program failures. This fix forces the XS bit to be set whenever a context switch is done to avoid this issue.